/*
 * Copyright 2020 tu.cn All right reserved. This software is the
 * confidential and proprietary information of tu.cn ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Tu.cn
 */
package com.worker.microsoft.service.impl;

import com.worker.microsoft.domain.OnedecMsgGroup;
import com.worker.microsoft.domain.OnedecMsgGroupEmp;
import com.worker.microsoft.domain.OnedecMsgGroupExample;
import com.worker.microsoft.mapper.OnedecMsgGroupEmpMapper;
import com.worker.microsoft.mapper.OnedecMsgGroupMapper;
import com.worker.microsoft.service.MsgGroupEmpService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 31014
 * @date 2020/7/24 3:05
 */
@Service
public class MsgGroupEmpServiceImpl implements MsgGroupEmpService {
    @Resource
    private OnedecMsgGroupEmpMapper onedecMsgGroupEmpMapper;
    @Resource
    private OnedecMsgGroupMapper onedecMsgGroupMapper;

    @Override
    public void insertEmpGroup(Integer gId, Integer eId) {
        final OnedecMsgGroupEmp msgGroupEmp = new OnedecMsgGroupEmp();
        msgGroupEmp.setMsgGroupEmpEmpId(eId);
        msgGroupEmp.setMsgGroupEmpGroupId(gId);
        onedecMsgGroupEmpMapper.insertSelective(msgGroupEmp);
    }
}